package com.yanqu.road.entity.enums.activity.chinesechess;

public enum eChineseChessPiecesType {
	/**
	 * 卒/兵
	 */
	Pawns(1001),
	/**
	 * 士/仕
	 */
	Mandarins(1002),
	/**
	 * 象/相
	 */
	Elephants(1003),
	/**
	 * 炮
	 */
	Cannons(1004),
	/**
	 * 马
	 */
	Knights(1005),
	/**
	 * 车
	 */
	Rooks(1006),
	/**
	 * 将/帅
	 */
	King(1007),
	;

	private int intValue;

	eChineseChessPiecesType(int value) {
		intValue = value;
	}

	public int getValue() {
		return intValue;
	}

	public static eChineseChessPiecesType forValue(int value) {
		for (eChineseChessPiecesType type : eChineseChessPiecesType.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
